package com.macro.mall.model;

import com.github.pagehelper.PageInfo;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @Author：hwh
 * @Description:
 * @name：EsQueryAndPage
 * @Date：2024/10/21 15:59
 */
@Data
public class EsQueryAndPage {

    @NotNull(message = "索引名称不能为空")
    private String indexName;

    /**
     * 分页
     */
    private PageInfo pageInfo = new PageInfo();

    /**
     * 排序
     */
    private OrderInfo orderInfo = new OrderInfo();

    /**
     * 多属性查询
     */
    private MatchQueryInfo matchQueryInfo = new MatchQueryInfo();
}
